<?php
class Tedi_Service_Filmweb_Search
{
	const TYPE_MOVIE      = 0;
	const TYPE_TV         = 1;
	const TYPE_SERIES     = 2;
	const TYPE_MINISERIES = 3;
	const TYPE_VIDEO      = 4;
	
	
	protected $_browser;
	
	public function __construct($title, $year = null, $type = self::TYPE_MOVIE)
	{
		$this->_browser = new Tedi_Browser('http://www.filmweb.pl/search/film');
	}
	
	public function search()
	{
		$comparer = new Tedi_String_Similar($this->title);
		
		// skanuje liste i wybiera najbardziej pasujacy tytul
		
		/*
		foreach($results as $result)
		{
			$comparer->compare($result->getTitle());
		}
		*/
	}